package com.jhgsys.internal.sypq.service;

import com.jhgsys.internal.sypq.entity.TaskShip;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 任务所需船模 Service接口
 *
 * @author ganjun
 * @date 2024-11-18 10:23:27
 */
public interface ITaskShipService extends IService<TaskShip> {
    /**
     * 查询（分页）
     * @author ganjun
     * @date 2024-11-18 10:23:27
     * @param request QueryRequest
     * @param taskShip taskShip
     * @return IPage<TaskShip>
     */
    IPage<TaskShip> findTaskShipPage(QueryRequest request, TaskShip taskShip);

    /**
     * 查询（所有）
     * @author ganjun
     * @date 2024-11-18 10:23:27
     * @param taskShip taskShip
     * @return List<TaskShip>
     */
    List<TaskShip> findTaskShipList(TaskShip taskShip);

    /**
    * 根据ID查询
    * @author ganjun
    * @date 2024-11-18 10:23:27
    * @param id
    * @return TaskShip
    */
    TaskShip findTaskShipById(String id);

    /**
     * 新增
     * @author ganjun
     * @date 2024-11-18 10:23:27
     * @param taskShip taskShip
     */
    boolean createTaskShip(TaskShip taskShip);

    /**
     * 修改
     * @author ganjun
     * @date 2024-11-18 10:23:27
     * @param taskShip taskShip
     */
    boolean updateTaskShip(TaskShip taskShip);

    /**
     * 逻辑删除
     * @author ganjun
     * @date 2024-11-18 10:23:27
     * @param taskShip taskShip
     * @param taskShipIds taskShipIds
     */
    boolean deleteTaskShip(TaskShip taskShip,String taskShipIds);

    /**
    * 物理删除
    * @author ganjun
    * @date 2024-11-18 10:23:27
    * @param taskShipIds taskShipIds
    */
    boolean physicallyDeleteTaskShip(String taskShipIds);

    boolean physicallyDeleteByTaskcode(String  taskcode);
}
